package com.example.demo.service.Impl;

import com.example.demo.mapper.MedicalMapper;
import com.example.demo.module.entity.Medical;
import com.example.demo.service.MedicalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MedicalServiceImpl implements MedicalService {
    @Autowired
    private MedicalMapper medicalMapper;

    @Override
    public List<Medical> findAll() throws Exception {
        return medicalMapper.selectAll();
    }
}
